package com.legoo.studaychineseonline.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.Gravity;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.legoo.studaychineseonline.R;
import com.legoo.studaychineseonline.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * 定制课
 * */
public class CustomizedActivity extends BaseActivity {
    @BindView(R.id.tv_title_left)
    TextView tvTitleLeft;
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.tv_title_right)
    TextView tvTitleRight;
    @Override
    protected void myOnCreate(@Nullable Bundle savedInstanceState) {
        ButterKnife.bind(this);
      //  tvTitleRight.setVisibility(View.INVISIBLE);
        tvTitle.setText("课程说明");
        tvTitleLeft.setBackgroundResource(R.mipmap.img_fanhui);
    }

    @Override
    protected void initData() {
        LinearLayout.LayoutParams linearParams =(LinearLayout.LayoutParams) tvTitleRight.getLayoutParams();
        linearParams.height = LinearLayout.LayoutParams.MATCH_PARENT;
        linearParams.width = LinearLayout.LayoutParams.WRAP_CONTENT;
        tvTitleRight.setLayoutParams(linearParams);
        tvTitleRight.setBackgroundResource(0);
        tvTitleRight.setGravity(Gravity.CENTER);
        tvTitleRight.setText("下一步");
    }

    @Override
    protected void resolveBundle(Bundle bundle) {

    }

    @Override
    protected int myLayoutId() {
        return R.layout.activity_customized;
    }
}
